import request from '@/utils/request'
// 传一个对象,优点:对象没有顺序,不分前后
const loginAPI = ({ mobile, code }) => {
  return request({
    method: 'post',
    url: '/v1_0/authorizations',
    data: {
      mobile,
      code
    }
    // axios默认请求的content-type的属性值就是application/json
  })
}

export { loginAPI }
